﻿/******************************************************   
创建者: 梁家健
创建时间: 2017-03-15
修改:
修改时间: 
功能: 单店毛利率
 ******************************************************/

using com.nm.Attributes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PlanAPI.model
{
    public class PLBasShopGrossRateModel
    {
        /// <summary>
        /// 单店毛利率实体
        /// </summary>
        /// Writer：梁家健
        /// Create Date：2017-03-15
        public class CreatModel: NeceModel
        {
            [ParamDescription("审核人")]
            public string Checker { get; set; }
            [ParamDescription("修改时间")]
            public DateTime? MofifyDTM { get; set; }
            [ParamDescription("允许使用")]
            public long? AllowUsed { get; set; }
            [ParamDescription("读取时间")]
            public DateTime? LoadTime { get; set; }
            [ParamDescription("修改时间")]
            public DateTime? EtlDate { get; set; }
        }

        /// <summary>
        /// 单店毛利率主要实体
        /// </summary>
        /// Writer：梁家健
        /// Create Date：2017-03-17
        public class NeceModel
        {
            [ParamDescription("公司代码")]
            public string CompanyID { get; set; }
            [ParamDescription("年份")]
            public long? Yearv { get; set; }
            [ParamDescription("季节")]
            public string SeasonID { get; set; }
            //[ParamDescription("月份")]
            //public long? Monthv { get; set; }
            //[ParamDescription("零售分区")]
            //public string ParentAreaID { get; set; }
            //[ParamDescription("店铺ID")]
            //public string ShopID { get; set; }
            [ParamDescription("类别")]
            public string KindID { get; set; }
            [ParamDescription("系列")]
            public string SeriesID { get; set; }
            [ParamDescription("售罄率")]
            public decimal? SaleRate { get; set; }
            [ParamDescription("订倍率")]
            public decimal? BuyRate { get; set; }
            [ParamDescription("累销折扣")]
            public decimal? TotalSaleRate { get; set; }
            [ParamDescription("目标毛利率")]
            public decimal? GrossRate { get; set; }
            [ParamDescription("审核状态")]
            public long? CheckState { get; set; }
            [ParamDescription("备注")]
            public string Remark { get; set; }
            [ParamDescription("数据源")]
            public string ExtrSource { get; set; }
        }

        /// <summary>
        /// 单店毛利率显示实体
        /// </summary>
        /// Writer：梁家健
        /// Create Date：2017-03-17
        public class ListModel:NeceModel
        {
            [ParamDescription("类别名称")]
            public string KindName { get; set; }
            [ParamDescription("系列名称")]
            public string SeriesName { get; set; }
            [ParamDescription("季节名称")]
            public string SeasonName { get; set; }
        }

        /// <summary>
        /// 单店毛利率修改实体
        /// </summary>
        /// Writer：梁家健
        /// Create Date：2017-03-15
        public class ModifyModel
        {
            public IList<NeceModel> list { get; set; }
        }
    }
}
